class BeanSupervisorVisit {
  String finishStatus;
  int targetWeek;
  int finishWeek;
  int page;
  int pageNum;
  int lastPage;
  String status;
  List<DataListBean> data;

  BeanSupervisorVisit({this.finishStatus, this.targetWeek, this.finishWeek, this.page, this.pageNum, this.lastPage, this.data,this.status});

  BeanSupervisorVisit.fromJson(Map<String, dynamic> json) {    
    this.finishStatus = json['finish_status'];
    this.targetWeek = json['target_week'];
    this.finishWeek = json['finish_week'];
    this.page = json['page'];
    this.pageNum = json['page_num'];
    this.lastPage = json['last_page'] ?? 0;
    this.status = json["status"];
    this.data = (json['data'] as List)!=null?(json['data'] as List).map((i) => DataListBean.fromJson(i)).toList():null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['finish_status'] = this.finishStatus;
    data['target_week'] = this.targetWeek;
    data['finish_week'] = this.finishWeek;
    data['page'] = this.page;
    data['page_num'] = this.pageNum;
    data['last_page'] = this.lastPage;
    data["status"] = this.status;
    data['data'] = this.data != null?this.data.map((i) => i.toJson()).toList():null;
    return data;
  }

}

class DataListBean {
  String type;
  String executeType;
  String status;
  String url;
  String houseAddress;
  String dealerName;
  String visitAt;
  String landlordName;
  String statusColor;
  String updatedAt;
  int id;
  int houseId;
  String lastVisitAt;
  String houseStatus;
  String detailUrl;

  DataListBean({this.type, this.executeType, this.status, this.url, this.houseAddress, this.dealerName, this.visitAt, this.landlordName, this.statusColor, this.updatedAt, this.id, this.houseId,this.houseStatus,this.lastVisitAt,this.detailUrl});

  DataListBean.fromJson(Map<String, dynamic> json) {    
    this.type = json['type'];
    this.executeType = json['execute_type'];
    this.status = json['status'];
    this.url = json['url'];
    this.houseAddress = json['house_address'];
    this.dealerName = json['dealer_name'];
    this.visitAt = json['visit_at'];
    this.landlordName = json['landlord_name'];
    this.statusColor = json['status_color'];
    this.updatedAt = json['updated_at'];
    this.id = json['id'];
    this.houseId = json['house_id'];
    this.lastVisitAt = json['last_visit_at'];
    this.houseStatus = json['house_status'];
    this.detailUrl = json['detail_url'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['type'] = this.type;
    data['execute_type'] = this.executeType;
    data['status'] = this.status;
    data['url'] = this.url;
    data['house_address'] = this.houseAddress;
    data['dealer_name'] = this.dealerName;
    data['visit_at'] = this.visitAt;
    data['landlord_name'] = this.landlordName;
    data['status_color'] = this.statusColor;
    data['updated_at'] = this.updatedAt;
    data['id'] = this.id;
    data['house_id'] = this.houseId;
    data['last_visit_at'] = this.lastVisitAt;
    data['house_status'] = this.houseStatus;
    data['detail_url'] = this.detailUrl;
    return data;
  }

  @override
  String toString() {
    return 'DataListBean{type: $type, executeType: $executeType, status: $status, url: $url, houseAddress: $houseAddress, dealerName: $dealerName, visitAt: $visitAt, landlordName: $landlordName, statusColor: $statusColor, updatedAt: $updatedAt, id: $id, houseId: $houseId,lastVisitAt:$lastVisitAt,houseStatus:$houseStatus,detailUrl:$detailUrl}';
  }
}

